home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 1⁄5⁄90 / 0311-Hierarchical menus-Jan90 < prev    next >
Encoding:
Text File  |  1990-01-05  |  1.4 KB  |  41 lines  |  [TEXT/GEOL]

  1. Item    6895827                         3-Jan-90        07:21
  2.  
  3. From:   DAWSON.M                        Dawson, Mark
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Hierarchical menus
  8.  
  9. I'm having problems getting hierarchical menus to show up.  I get the main
  10. menu's item, with its right arrow, to appear.  But when I drag the cursor down
  11. to that menu item, it inverts it without showing the the hierarchical menu that
  12. should appear to the right.   I couldn't find any documentation on how to get
  13. them to work, except for the DemoText program (which got rez on its
  14. hierarchical menu definition).
  15.  
  16. I'm using MPW C++.  Here's what I've done:
  17.  
  18. resource 'cmnu' (4) {
  19.   4, textMenuProc, allEnabled, enabled, "test menu",
  20.   { "hier menu", noIcon, hierarchicalMenu, "\0x08", plain, cHier }
  21. };
  22.  
  23. resource 'cmnu' (8) {
  24.   8, textMenuProc, allEnabled, enabled, "hier menu",
  25.   {  "hier menu1", noIcon, noKey, noMark, plain, cHier1;
  26.      "hier menu2", noIcon, noKey, noMark, plain, cHier2;
  27.      "hier menu3", noIcon, noKey, noMark, plain, cHier3
  28.   }
  29. };
  30.  
  31. In the initialization part of my C++ code I:
  32.   Enable(cHier,TRUE); Enable(cHier1,TRUE);
  33.   Enable(cHier2,TRUE); Enable(cHier3,TRUE);
  34.  
  35. Is there some other work I need to be doing?  I had thought that hierarchical
  36. menus were just resource that you set up--I haven't found any documentation,
  37. though.  Any help would be appreciated.
  38.  
  39. --Mark
  40.  
  41.